var express = require('express');
var app = express();
var fs = require("fs");

app.get('/', function (request, response) {
    fs.readFile("public/index.html", function (err, data) {
        response.end(data);
    });
})

var serverPort = 8080;
var server = app.listen(serverPort, function () {
    console.log("访问地址为 http://127.0.0.1:%s", serverPort);
});